/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local.ctl;

import java.sql.SQLException;
import persistance.DaoCpu;
import shared.Cpu;

/**
 *
 * @author xarckane
 */
public class ctlCpu {
    
    public static Cpu CreateCpu(){
        
        return new Cpu();
    };

    static Cpu getCpuByRequestId(int id) throws SQLException {
        return DaoCpu.getInstance().getCpuByRequestId(id);
    }
    public static void save(String serv,Cpu cpu) throws SQLException{
         DaoCpu.getInstance().saveCpu(serv, cpu);
    }
    
    
    
}
